home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / time / dcf77 / docs and install english / installdcf77 < prev    next >
Encoding:
AmigaDOS Script File  |  1996-09-10  |  1.9 KB  |  77 lines

  1. .key ""
  2. .bra {
  3. .ket }
  4.  
  5. ; $VER: InstallDCF77 2.2 (10.9.96)
  6. ; installiert DCF77
  7.  
  8. FailAt 100
  9.  
  10. Version >NIL:
  11. IF NOT $Workbench GE "39."
  12.     Echo "*nWorkbench 2.0/2.1 installation is running:*n"
  13.     Echo "copying DCF77 and GClock to SYS:WBStartup...*n" 
  14.     Resident >NIL: C:COPY PURE
  15.     Resident >NIL: C:WAIT PURE
  16.     Resident >NIL: C:ECHO PURE
  17.     Resident >NIL: C:DELETE PURE
  18.  
  19.     /c/Retire DCF77
  20.     Delete c:(DCF77|DCF77.info)
  21.     Delete SYS:Utilities/(DCF77|DCF77.info)
  22.     Delete SYS:Tools/Commodities/(DCF77|DCF77.info)
  23.  
  24.     CD "/DCF77 (Kickstart 2.04)"
  25.     IF EXISTS DCF77
  26.         Copy (DCF77|DCF77.info) SYS:WBStartup/
  27.         CD /
  28.         Copy Utilities/(GClock|GClock.info) SYS:WBStartup/
  29.     Else
  30.         Echo "*N Missing files.*n"
  31.         Wait 5
  32.         Endshell
  33.     EndIf
  34.     Echo "*nDCF77 installed.*n"
  35.     Wait 5
  36.  
  37. Else
  38.  
  39.     RequestChoice >ENV:DCFSetup{$$} "InstallDCF77" "About to copy DCF77 to WBStartup*nand delete old versions of DCF77.*n" "Continue" "Cancel"
  40.     IF $DCFSetup{$$} EQ "1"
  41.         Resident >NIL: C:COPY PURE
  42.  
  43.         /c/Retire DCF77
  44.         Delete c:(DCF77|DCF77.info)
  45.         Delete SYS:Utilities/(DCF77|DCF77.info)
  46.         Delete SYS:Tools/Commodities/(DCF77|DCF77.info)
  47.  
  48.         CD "/DCF77 (Kickstart 2.04)"
  49.         IF EXISTS DCF77
  50.             Copy (DCF77|DCF77.info) SYS:WBStartup/
  51.             CD /
  52.             RequestChoice >ENV:DCFSetup{$$} "InstallDCF77" "Copy GClock to WBStartup?*n*n(GClock displays the receiver state.)*n" "Yes" "No"
  53.             IF $DCFSetup{$$} EQ "1"
  54.                 Copy Utilities/(GClock|GClock.info) SYS:WBStartup/
  55.             EndIF
  56.             RequestChoice >ENV:DCFSetup{$$} "InstallDCF77" "Copy TimeSignal to WBStartup?*n*n(TimeSignal plays a time signal.)*n" "Yes" "No"
  57.             IF $DCFSetup{$$} EQ "1"
  58.                 Copy Utilities/TimeSignal SYS:WBStartup/
  59.                 IF NOT EXISTS SYS:WBStartup/TimeSignal.info
  60.                     Copy Utilities/TimeSignal.info SYS:WBStartup/
  61.                 EndIf
  62.             EndIF
  63.         Else
  64.             Echo "*N Missing files.*n"
  65.             Wait 5
  66.             Endshell
  67.         EndIf
  68.  
  69.         Delete ENV:DCFSetup{$$} QUIET
  70.  
  71.         RequestChoice >NIL: "InstallDCF77" "DCF77 is installed." "OK"
  72.     Else
  73.         Echo "*n Installation canceled."
  74.     EndIF
  75. EndIF
  76.  
  77.